package com.yhao.stock.controller;


import com.yhao.stock.common.service.THSService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 每天交易概览 前端控制器
 * </p>
 *
 * @author yhao
 * @since 2023-11-12
 */
@RestController
@RequestMapping("/dayInfo")
public class DayInfoController {

    @Autowired
    private THSService thsService;

    @GetMapping("/getNowDayInfo")
    public String getNowDayInfo() {

        // 264
        int pageCount = 264;
        String baseUrl = "https://q.10jqka.com.cn/index/index/board/all/field/zdf/order/desc/page/";

        thsService.getDayInfo(pageCount, baseUrl);

        return "success";
    }
}
